package com.hdax.service.impl;

import com.hdax.dao.TongjiMapper;
import com.hdax.entity.User;
import com.hdax.service.TongjiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TongjiServiceImpl implements TongjiService {
    @Autowired
    private TongjiMapper dao;

    @Override
    public List<String> findSeries() {
        return dao.findSeries();
    }

    @Override
    public List<Integer> findCarId(String series) {
        return dao.findCarId(series);
    }

    @Override
    public List<User> findUserAll() {
        return dao.findUserAll();
    }

    @Override
    public Integer findCusDriveCountByUserIdAndCarSeries(Map map) {
        return dao.findCusDriveCountByUserIdAndCarSeries(map);
    }

    @Override
    public   List<Map> findBuyCarCount() {
        return dao.findBuyCarCount();
    }

    @Override
    public List<Map> findCustomerCount() {
        return dao.findCustomerCount();
    }
}
